package com.pactera.madp.cp.api.vo.roomqt;

import com.pactera.madp.cp.api.entity.roomqc.ChildRuleEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class QTRuleVo { //大规则Vo
    private Integer id;
    private String name; //规则名
    private String owner;  //规则拥有着的名字， 根据当前账户（cpadmin）的
    private Boolean isOpen;  //规则状态
    private Integer detectionType; //检测类型1, 全天， 2， 自定义时间
    private String startTime; //开始时间
    private String endTime;  //结束时间
    private Integer todayTime; //今天触发的次数
    private Integer weekTime;  //本周触发的次数
    private Integer monthTime;  //本月触发的次数
    private Integer totalTime;  //总次数
    private String createTime; //创建时间
    private List<Room> rooms;
    private List<rule> rules;
    @Data
    public static class Room {
        private Integer id; //群id
        private String owner;  //群主名
        private Integer status;  //群状态
        @ApiModelProperty(value = "客户群名称")
        private String name; //群名
        private Integer todayTime; // 今天的次数
        private Integer weekTime;  //本周触发的次数
        private Integer monthTime;  //本月触发的次数
        private Integer totalTime;  //总次数
        private Integer peopleNumber;  //群人数
        private Integer maxNumber; //群人员最大数
        private String latestTime;  //最近一次触发的次数
        private Integer employeeNumber;  //群里成员的数量
    }
    @Data
    public static class rule {

        private Integer id;  //规则id
        private Integer time;    //时间
        private Integer timeType;   //1,2,3 分时
        private String roleName;   //角色类型名
        private String sendWho;    //发送给的id
        private List<String> names;  //发送的成员名
    }
}
